package com.example.test1.http;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Url;

/**
 * Created by 段傅华 on 2018/12/12.
 */

public interface MySerer {
    String mUrl="https://www.firstgainfo.com/firstga/app/news/";
    @POST
    @Headers("Content-Type:application/x-www-form-urlencoded")
    Observable<String>postChannel(@Url String url, @Body RequestBody requestBody);
    @POST
    @Headers("Content-Type:application/json")
    Observable<String>postList(@Url String url,@Body RequestBody requestBody);
}
